import { post } from './server'

// 对内测试接口
// const baseUrl_interface = 'http://192.168.23.200:8082/ext_smk_activity/';
// 对外测试地址
// const baseUrl_interface = "http://115.236.162.166:18081/ext_smk_activity/";
// 验证接口地址
// const BASE = "http://activity.96225.com/win_smk_activity";
// 生产环境
let BASE = 'https://activity.96225.com/ext_smk_activity'//网
// 测试环境
// let BASE = 'http://192.168.23.200:8082/ext_smk_activity'//网
// const BASE = process.env.NODE_ENV == 'development' ? 'http://192.168.23.200:8082/ext_smk_activity':'https://activity.96225.com/ext_smk_activity'

// 生产环境调微信
const BASE_Wx = 'https://weixin.96225.com/smk_weixin/user'
let $URL = {
  extGetQueryReserveNo:BASE + '/extGetQueryReserveNo.ext', // 获取历史查询的预约号
  extQueryReserveProgress:BASE + '/extQueryReserveProgress.ext', // 查询预约号的进度
  getOpenId:BASE_Wx + '/getOpenId.ext', // 获取oenId
};
//获取oenId
export function getOpenId(params){
  return post($URL.getOpenId,"request="+JSON.stringify(params));
}
//获取历史查询的预约号
export function extGetQueryReserveNo(params){
  return post($URL.extGetQueryReserveNo,"request="+JSON.stringify(params));
}
//查询预约号的进度
export function extQueryReserveProgress(params){
  return post($URL.extQueryReserveProgress,"request="+JSON.stringify(params));
}